Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a new pass to generate column-wise control overlay #1012

Merged
merged 7 commits into from
Jan 9, 2025

Conversation

Yu-Zhewen
Copy link
Contributor

@Yu-Zhewen Yu-Zhewen commented Jan 8, 2025

Adapted from Xilinx/mlir-aie#1705.

Introduces a new pass to automatically insert the following two groups of flows:

  1. route-shim-to-tct, circuit flows from shim CTRL to shim SOUTH ports, for sending TCTs.
  2. route-shim-to-tile-ctrl, packet flows between shim DMA to shim/mem/compute tile CTRL ports, for sending control packets.

@Yu-Zhewen Yu-Zhewen force-pushed the zhewen_ctrl_overlay branch from a9de2c6 to bc0a1b9 Compare January 8, 2025 14:23
@@ -267,7 +267,7 @@ LogicalResult configureStreamSwitch(const AMDAIEDeviceModel &deviceModel,
const TileLoc &tileLoc,
const std::vector<Connect> &connects) {
auto devInst = const_cast<XAie_DevInst *>(&deviceModel.devInst);
// FIXME hack for TCT routing
// mlir-air legacy, hack for TCT routing
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, since the new pass operates on AMDAIE::TileOp and FlowOp, this hack cannot be removed for tests using AIR.

@Yu-Zhewen Yu-Zhewen changed the title [Draft] Add a new pass to generate column-wise control overlay Add a new pass to generate column-wise control overlay Jan 8, 2025
@Yu-Zhewen Yu-Zhewen marked this pull request as ready for review January 8, 2025 23:42
Copy link
Collaborator

@jtuyls jtuyls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Yu-Zhewen Yu-Zhewen enabled auto-merge (squash) January 9, 2025 17:37
@Yu-Zhewen Yu-Zhewen disabled auto-merge January 9, 2025 17:40
@Yu-Zhewen Yu-Zhewen merged commit 75ea24b into main Jan 9, 2025
7 checks passed
@Yu-Zhewen Yu-Zhewen deleted the zhewen_ctrl_overlay branch January 9, 2025 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants